package com.zhangyusheng.easyecharts.component;


import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * TODO: 强调样式
 *
 * @author Michael zhang
 * @email zhangys_0217@sina.com
 * @since 2025年11月03日
 */
@Data
@Accessors(chain = true)
public class Emphasis implements Serializable {
    private final static long serialVersionUID = 2L;
    private String focus;
    private ItemStyle itemStyle;



    public static class Builder{
        private String focus;
        private ItemStyle itemStyle;


        public Builder focus(String focus){
            this.focus = focus;
            return this;
        }
        public Builder itemStyle(ItemStyle itemStyle){
            this.itemStyle = itemStyle;
            return this;
        }
        public Emphasis build(){
            return new Emphasis(this);
        }
    }
    private Emphasis(Builder builder){
        this.focus = builder.focus;
        this.itemStyle = builder.itemStyle;
    }
}
